package com.example.myapplication.shortvideo;

import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import com.example.myapplication.R;
import com.example.myapplication.databinding.ActivityTestBinding;
import com.example.myapplication.shortvideo.view.ShotVideoNoteAnimeView;

public class TestActivity extends AppCompatActivity {



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityTestBinding binding = DataBindingUtil.setContentView(
                this, R.layout.activity_test);


        ShotVideoNoteAnimeView shotVideoNoteAnimeView = new ShotVideoNoteAnimeView(binding.imgNote1, binding.imgNote2, binding.imgCardHead);
        shotVideoNoteAnimeView.startAnime();

        AnimationDrawable mAnimationDrawable = (AnimationDrawable) binding.imgLive.getDrawable();
        mAnimationDrawable.start();
    }


}